package com.emex.app.shared.ws;

import com.emex.app.shared.data.Car;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;

/**
 *
 * @author Sergey Karavaev
 */
@WebService(targetNamespace = "http://emex.com/Car")
public interface CarWebService {

    @WebMethod
    @RequestWrapper(className = "deleteCar")
    @ResponseWrapper(className = "deleteCarResponse")
    public int deleteByPrimaryKey(Integer id);

    @WebMethod
    @RequestWrapper(className = "insertCar")
    @ResponseWrapper(className = "insertCarResponse")
    public Car insert(Car record);

    @WebMethod
    @RequestWrapper(className = "selectCarByPrimaryKey")
    @ResponseWrapper(className = "selectCarByPrimaryKeyResponse")
    public Car selectByPrimaryKey(Integer id);

    @WebMethod
    @RequestWrapper(className = "updateCarByPrimaryKey")
    @ResponseWrapper(className = "updateCarByPrimaryKeyResponse")
    public Car updateByPrimaryKey(Car record);

    @WebMethod
    @RequestWrapper(className = "getAllCarsByClientId")
    @ResponseWrapper(className = "getAllCarsByClientIdResponse")
    public List<Car> getAllCarsByClientId(Integer clientId);

}
